﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class InterlockedOperations
   | CodeJam </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class InterlockedOperations
   | CodeJam ">
    <meta name="generator" content="docfx 2.23.1.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <meta property="docfx:rel" content="../../">
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../images/CodeJam.Main.Icon.png" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items"></div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="CodeJam.Threading.InterlockedOperations">
  
  
  <h1 id="CodeJam_Threading_InterlockedOperations" data-uid="CodeJam.Threading.InterlockedOperations" class="text-break">Class InterlockedOperations
  </h1>
  <div class="markdown level0 summary"><p>Provides a helper class for initializing a values in a thread-safe manner.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">InterlockedOperations</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CodeJam.Threading.html">CodeJam.Threading</a></h6>
  <h6><strong>Assembly</strong>: CodeJam.dll</h6>
  <h5 id="CodeJam_Threading_InterlockedOperations_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class InterlockedOperations</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Double__System_Double_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Double%40%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L36">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Double__System_Double_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Double@,System.Double)">Initialize(ref Double, Double)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">value</code> only if the current value is default(double).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double Initialize(ref double target, double value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value to use if the target is equal to default(double).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Double@,System.Double,System.Double)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Double__System_Double_System_Double_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Double%40%2CSystem.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L53">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Double__System_Double_System_Double_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Double@,System.Double,System.Double)">Initialize(ref Double, Double, Double)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">initializedValue</code> only if the current value
is <code data-dev-comment-type="paramref" class="paramref">uninitializedValue</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double Initialize(ref double target, double initializedValue, double uninitializedValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">initializedValue</span></td>
        <td><p>The value to use if the target is currently uninitialized.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">uninitializedValue</span></td>
        <td><p>The uninitialized value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Double@,System.Double,System.Double)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Int32__System_Int32_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Int32%40%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L218">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Int32__System_Int32_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Int32@,System.Int32)">Initialize(ref Int32, Int32)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">value</code> only if the current value is default(int).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int Initialize(ref int target, int value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value to use if the target is equal to default(int).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Int32@,System.Int32,System.Int32)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Int32__System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Int32%40%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L235">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Int32__System_Int32_System_Int32_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Int32@,System.Int32,System.Int32)">Initialize(ref Int32, Int32, Int32)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">initializedValue</code> only if the current value
is <code data-dev-comment-type="paramref" class="paramref">uninitializedValue</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int Initialize(ref int target, int initializedValue, int uninitializedValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">initializedValue</span></td>
        <td><p>The value to use if the target is currently uninitialized.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">uninitializedValue</span></td>
        <td><p>The uninitialized value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Int32@,System.Int32,System.Int32)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Int64__System_Int64_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Int64%40%2CSystem.Int64)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L309">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Int64__System_Int64_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Int64@,System.Int64)">Initialize(ref Int64, Int64)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">value</code> only if the current value is default(long).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static long Initialize(ref long target, long value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value to use if the target is equal to default(long).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Int64@,System.Int64,System.Int64)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Int64__System_Int64_System_Int64_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Int64%40%2CSystem.Int64%2CSystem.Int64)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L326">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Int64__System_Int64_System_Int64_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Int64@,System.Int64,System.Int64)">Initialize(ref Int64, Int64, Int64)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">initializedValue</code> only if the current value
is <code data-dev-comment-type="paramref" class="paramref">uninitializedValue</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static long Initialize(ref long target, long initializedValue, long uninitializedValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">initializedValue</span></td>
        <td><p>The value to use if the target is currently uninitialized.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">uninitializedValue</span></td>
        <td><p>The uninitialized value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Int64@,System.Int64,System.Int64)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Single__System_Single_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Single%40%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L127">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Single__System_Single_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Single@,System.Single)">Initialize(ref Single, Single)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">value</code> only if the current value is default(float).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static float Initialize(ref float target, float value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value to use if the target is equal to default(float).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Single@,System.Single,System.Single)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize_System_Single__System_Single_System_Single_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize(System.Single%40%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L144">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize_System_Single__System_Single_System_Single_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize(System.Single@,System.Single,System.Single)">Initialize(ref Single, Single, Single)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">initializedValue</code> only if the current value
is <code data-dev-comment-type="paramref" class="paramref">uninitializedValue</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static float Initialize(ref float target, float initializedValue, float uninitializedValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">initializedValue</span></td>
        <td><p>The value to use if the target is currently uninitialized.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">uninitializedValue</span></td>
        <td><p>The uninitialized value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange(System.Single@,System.Single,System.Single)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize__1___0____0_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize%60%601(%60%600%40%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L401">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize__1___0____0_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize``1(``0@,``0)">Initialize&lt;T&gt;(ref T, T)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">value</code> only if the current value is default(T).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T Initialize&lt;T&gt;(ref T target, T value)where T : class</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value to use if the target is equal to default(T).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange``1(``0@,``0,``0)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>Type of value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Initialize__1___0____0___0_.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Initialize%60%601(%60%600%40%2C%60%600%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L420">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Initialize_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Initialize__1___0____0___0_" data-uid="CodeJam.Threading.InterlockedOperations.Initialize``1(``0@,``0,``0)">Initialize&lt;T&gt;(ref T, T, T)</h4>
  <div class="markdown level1 summary"><p>Initialize the value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code> in a thread-safe manner.
The value is changed to <code data-dev-comment-type="paramref" class="paramref">initializedValue</code> only if the current value
is <code data-dev-comment-type="paramref" class="paramref">uninitializedValue</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T Initialize&lt;T&gt;(ref T target, T initializedValue, T uninitializedValue)where T : class</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">target</span></td>
        <td><p>Reference to the target location.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">initializedValue</span></td>
        <td><p>The value to use if the target is currently uninitialized.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">uninitializedValue</span></td>
        <td><p>The uninitialized value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><p>The new value referenced by <code data-dev-comment-type="paramref" class="paramref">target</code>.
Note that this is nearly always more useful than the usual
return from <span class="xref">System.Threading.Interlocked.CompareExchange``1(``0@,``0,``0)</span>
because it saves another read to <code data-dev-comment-type="paramref" class="paramref">target</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>Type of value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Double__System_Double_System_Func_System_Double_System_Double_System_Double__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Double%40%2CSystem.Double%2CSystem.Func%7BSystem.Double%2CSystem.Double%2CSystem.Double%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L99">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Double__System_Double_System_Func_System_Double_System_Double_System_Double__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Double@,System.Double,System.Func{System.Double,System.Double,System.Double})">Update(ref Double, Double, Func&lt;Double, Double, Double&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double Update(ref double value, double newValue, Func&lt;double, double, double&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">newValue</span></td>
        <td><p>Precalculated new value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Double</span>, <span class="xref">System.Double</span>, <span class="xref">System.Double</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Double__System_Double_System_Func_System_Double_System_Double_System_Double___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Double__System_Func_System_Double_System_Double__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Double%40%2CSystem.Func%7BSystem.Double%2CSystem.Double%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L74">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Double__System_Func_System_Double_System_Double__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Double@,System.Func{System.Double,System.Double})">Update(ref Double, Func&lt;Double, Double&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double Update(ref double value, Func&lt;double, double&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Double</span>, <span class="xref">System.Double</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Double__System_Func_System_Double_System_Double___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Int32__System_Func_System_Int32_System_Int32__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Int32%40%2CSystem.Func%7BSystem.Int32%2CSystem.Int32%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L256">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Int32__System_Func_System_Int32_System_Int32__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Int32@,System.Func{System.Int32,System.Int32})">Update(ref Int32, Func&lt;Int32, Int32&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int Update(ref int value, Func&lt;int, int&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Int32</span>, <span class="xref">System.Int32</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Int32__System_Func_System_Int32_System_Int32___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Int32__System_Int32_System_Func_System_Int32_System_Int32_System_Int32__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Int32%40%2CSystem.Int32%2CSystem.Func%7BSystem.Int32%2CSystem.Int32%2CSystem.Int32%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L281">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Int32__System_Int32_System_Func_System_Int32_System_Int32_System_Int32__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Int32@,System.Int32,System.Func{System.Int32,System.Int32,System.Int32})">Update(ref Int32, Int32, Func&lt;Int32, Int32, Int32&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int Update(ref int value, int newValue, Func&lt;int, int, int&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">newValue</span></td>
        <td><p>Precalculated new value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Int32</span>, <span class="xref">System.Int32</span>, <span class="xref">System.Int32</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Int32__System_Int32_System_Func_System_Int32_System_Int32_System_Int32___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Int64__System_Func_System_Int64_System_Int64__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Int64%40%2CSystem.Func%7BSystem.Int64%2CSystem.Int64%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L347">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Int64__System_Func_System_Int64_System_Int64__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Int64@,System.Func{System.Int64,System.Int64})">Update(ref Int64, Func&lt;Int64, Int64&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static long Update(ref long value, Func&lt;long, long&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Int64</span>, <span class="xref">System.Int64</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Int64__System_Func_System_Int64_System_Int64___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Int64__System_Int64_System_Func_System_Int64_System_Int64_System_Int64__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Int64%40%2CSystem.Int64%2CSystem.Func%7BSystem.Int64%2CSystem.Int64%2CSystem.Int64%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L372">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Int64__System_Int64_System_Func_System_Int64_System_Int64_System_Int64__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Int64@,System.Int64,System.Func{System.Int64,System.Int64,System.Int64})">Update(ref Int64, Int64, Func&lt;Int64, Int64, Int64&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static long Update(ref long value, long newValue, Func&lt;long, long, long&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">newValue</span></td>
        <td><p>Precalculated new value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Int64</span>, <span class="xref">System.Int64</span>, <span class="xref">System.Int64</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Int64__System_Int64_System_Func_System_Int64_System_Int64_System_Int64___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Single__System_Func_System_Single_System_Single__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Single%40%2CSystem.Func%7BSystem.Single%2CSystem.Single%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L165">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Single__System_Func_System_Single_System_Single__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Single@,System.Func{System.Single,System.Single})">Update(ref Single, Func&lt;Single, Single&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static float Update(ref float value, Func&lt;float, float&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Single</span>, <span class="xref">System.Single</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Single__System_Func_System_Single_System_Single___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update_System_Single__System_Single_System_Func_System_Single_System_Single_System_Single__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update(System.Single%40%2CSystem.Single%2CSystem.Func%7BSystem.Single%2CSystem.Single%2CSystem.Single%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L190">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update_System_Single__System_Single_System_Func_System_Single_System_Single_System_Single__" data-uid="CodeJam.Threading.InterlockedOperations.Update(System.Single@,System.Single,System.Func{System.Single,System.Single,System.Single})">Update(ref Single, Single, Func&lt;Single, Single, Single&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static float Update(ref float value, float newValue, Func&lt;float, float, float&gt; updateCallback)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">newValue</span></td>
        <td><p>Precalculated new value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Single</span>, <span class="xref">System.Single</span>, <span class="xref">System.Single</span>&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update_System_Single__System_Single_System_Func_System_Single_System_Single_System_Single___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update__1___0____0_System_Func___0___0___0__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update%60%601(%60%600%40%2C%60%600%2CSystem.Func%7B%60%600%2C%60%600%2C%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L468">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update__1___0____0_System_Func___0___0___0__" data-uid="CodeJam.Threading.InterlockedOperations.Update``1(``0@,``0,System.Func{``0,``0,``0})">Update&lt;T&gt;(ref T, T, Func&lt;T, T, T&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T Update&lt;T&gt;(ref T value, T newValue, Func&lt;T, T, T&gt; updateCallback)where T : class</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">newValue</span></td>
        <td><p>Precalculated new value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;T, T, T&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update__1___0____0_System_Func___0___0___0___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations_Update__1___0__System_Func___0___0__.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations.Update%60%601(%60%600%40%2CSystem.Func%7B%60%600%2C%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L442">View Source</a>
  </span>
  <a id="CodeJam_Threading_InterlockedOperations_Update_" data-uid="CodeJam.Threading.InterlockedOperations.Update*"></a>
  <h4 id="CodeJam_Threading_InterlockedOperations_Update__1___0__System_Func___0___0__" data-uid="CodeJam.Threading.InterlockedOperations.Update``1(``0@,System.Func{``0,``0})">Update&lt;T&gt;(ref T, Func&lt;T, T&gt;)</h4>
  <div class="markdown level1 summary"><p>Implements lock-free update pattern implementation based on compare-and-swap loop</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T Update&lt;T&gt;(ref T value, Func&lt;T, T&gt; updateCallback)where T : class</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>Value to change.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Func</span>&lt;T, T&gt;</td>
        <td><span class="parametername">updateCallback</span></td>
        <td><p>Function to calculate new value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><p>New value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Threading_InterlockedOperations_Update__1___0__System_Func___0___0___remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Uses the same approach that used by c# compiler in event subscription methods</p>
</div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Threading_InterlockedOperations.md&amp;value=---%0Auid%3A%20CodeJam.Threading.InterlockedOperations%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Threading/InterlockedOperations.generated.cs/#L20" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            Copyright � 2015-2017
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
